class Solution(object):
    def twoSum(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """
        for i in range(len(nums)):
            for j in range(i+1,len(nums)):
                if int(target) == nums[i] + nums[j] and i != j:
                   return ([i, j])


def main():
    # arr_1 = input('nums = ')
    # print(str(arr_1))
    # arr = [int(n) for n in arr_1.split(',')]
    arr = list(map(int, input('nums =').strip().split(',')))

    target = input('target = ')

    s = Solution()
    s.twoSum(nums=arr, target=target)

if __name__ == '__main__':
    main()